<?php $rows =& $this->data; ?>
<form action="index.php" method="post" name="adminForm">
	<table class="adminlist">
		<tr>
			<td width="100%" colspan="7">
				<?php echo JText::_( 'Filter' ); ?>:
				<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="text_area" />
				<?php echo ' in ' . $this->lists['field'];?>
				<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
				<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_type').value='0';this.form.getElementById('filter_logged').value='0';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
			</td>
			<td nowrap="nowrap">

			</td>
		</tr>
		<thead>
			<tr>
				<th width="20">
					<input type="checkbox" name="toggle" value=""onclick="checkAll(<?php echo count( $rows ); ?>);" />
				</th>
				<th class="title"><?php echo JText::_(Id) ?> </th>
				<th width="15%"><?php echo JText::_(User)?> </th>
				<th width="15%"><?php echo JText::_(Name)?> </th>
				<th width="10%"><?php echo JText::_(Anum)?> </th>
				<th width="10%"><?php echo JText::_(IP)?> </th>
				<th width="40%"><?php echo JText::_(Address)?> </th>
				<th width="10%"><?php echo JText::_(Allsum)?> </th>
			</tr>
		</thead>
		<?php
		jimport('joomla.filter.output');
		$k = 0;
		for ($i=0, $n=count( $rows ); $i < $n; $i++) {
			$row = &$rows[$i];
			$checked = JHTML::_('grid.id', $i, $row->id );
			$link = ( 'index.php?option=' . $option . '&task=edit&cid[]='. $row->id );
			?>
			<tr class="<?php echo "row$k"; ?>">
				<td><?php echo $checked; ?></td>
				<td><a href="<?php echo $link; ?>"><?php echo $row->id; ?></a></td>
				<td><?php echo $row->username; ?></td>
				<td><?php echo $row->name; ?></td>
				<td><?php echo $row->anum; ?></td>
				<td><?php echo $row->userip; ?></td>
				<td><?php echo $row->ADDRES; ?></td>
				<td align="right"><?php echo number_format($row->ALLSUM, 2); ?></td>
			</tr>
			<?php
			$k = 1 - $k;
		}
		?>
		<tfoot>
		<td colspan="8"><?php echo $this->pagination->getListFooter(); ?></td>
	</tfoot>
	</table>
<input type="hidden" name="option" value="<?php echo $option;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
</form>
